package com.liuceng.mps;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class Page<T> {
  private int totalCount;
  private List<T> content = new ArrayList<T>();

  public Page() {}

  public Page(List<T> content, int total) {
    this.totalCount = total;
    this.content.addAll(content);
  }
}
